package com.econ.powercloud.ems.common.enums;

/**
 * @author zjr
 * @create 2021/1/28 下午6:34
 * @description 操作反馈描述
 */
public enum FaultDesc implements EnumMethod{
    FAILURE_ERROR(4000,"发生错误"),
    FAILURE_NULL(4001,"数据为空"),
    FAILURE_REPEAT(4002,"数据重复"),
    FAILURE_OCCUPY(4003,"该数据正在使用中"),
    FAILURE_NOT_FOUNT(4004,"未找到对应数据"),
    FAILURE_OVERRUN(4005,"超出上限"),
    FAILURE_INCONFORMITY(4006,"数据不符"),
    FAILURE_READ_FILE_ERROR(4007,"读取文件失败"),
    FAILURE_FILE_ERROR(4008,"文件错误"),
    FAILURE_STATION_NON_EXISTENT(4009, "储能站不存在"),
    FAILURE_STATION_CODE_EMPTY(4010, "储能站编号不能为空"),
    FAILURE_EQUIPMENT_NON_EXISTENT(4009, "储能装置不存在"),
    FAILURE_EQUIPMENT_CODE_EMPTY(4011, "储能装置编号不能为空"),
    FAILURE_PEAK_SHIFT_NAME_REPEAT(4011,"策略名称重复"),
    FAILURE_PEAK_SHIFT_IN_USED(4012,"策略正在使用中，无法进行修改"),
    FAILURE_PEAK_SHIFT_NOT_EXISTS(4013,"策略不存在"),
    FAILURE_PEAK_SHIFT_TIME_FAULSE(4014,"所选城市或时间冲突"),
    PASSWORD_ERROR(4015,"密码输入错误"),
    FAILURE_NOT_FOUND_YT_DIT(4016,"遥调数据不存在"),
    FAILURE_NOT_FOUND_YT_SET_VAL(4017,"设定值超过范围"),
    SELECT_ERR(4018,"数据插入失败"),
    FORCED_OFFLINE(4019,"该账户已在别处登陆"),
    FAILURE_ISSUE(4020,"遥控遥调下发失败"),
    FAULT_STRATEGY(4021,"能量调度策略下发失败"),
    FAULT_TIMEOUT(500,"下发超时"),
    ;


    private Integer code;
    private String desc;

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getDesc() {
        return desc;
    }

    FaultDesc(int code, String desc){
        this.code=code;
        this.desc=desc;
    }

}
